# export namespace="monitor-system"
# export app_name="netdata"
# export repo="netdata"
# export helm="$repo/$app_name"
# # export url="https://deepflowio.github.io/deepflow"
# export url="https://netdata.github.io/helmchart"
# # helm search repo deepflow/deepflow --devel -l

# helm repo remove $repo
# helm repo add $repo $url
# helm repo update $repo

# helm upgrade --install -n $namespace \
#   --create-namespace $app_name $helm \
#   --set ingress.hosts[0]="netdata.youling.io" \
#   --set ingress.annotations=kubernetes.io/ingress.class: traefik \
#   --set ingress.spec.ingressClassName="traefik" 




git clone --depth 1 https://github.com/netdata/helmchart
helm install netdata ./helmchart/charts/netdata  \
  -n monitor-system 

# 拷贝 values.yaml 到 helmchart/charts/netdata

helm upgrade --set-file sd.child.configmap.from.value=./child.yml netdata ./helmchart/charts/netdata -n monitor-system